package main

import "fmt"

func printA(a int) {
	fmt.Println("value of a in defered fundtion", a)
}

func main() {
	a := 5
	defer printA(a)
	a = 10
	fmt.Println("value of a before deferred funtion call", a)
}
